﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace HZ.Supervise.Web.Secondphase.ReportHospital
{
    public partial class HospitalGetPsympToms : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Banding();
            }
        }

        //绑定未补助的医院
        private void Banding()
        {
            int totalrecord = 0;
            string strwhere = "";
            HZ.Supervise.IBLL.IBLL_ProcureCatalog iPrescription = HZ.Supervise.BLLFactory.IBLL_ProcureCatalog();
            strwhere = txtPsympToms.Text.Trim();
            DataTable dt = iPrescription.GetPsympToms(strwhere,this.AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageSize, out totalrecord);
            AspNetPager1.RecordCount = totalrecord;
            this.gvwPsympToms.DataSource = dt;
            this.gvwPsympToms.DataBind();


        }
        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void AspNetPager1_OnPageChanged(object sender, EventArgs e)
        {
            Banding();
        }
        /// <summary>
        /// 查询按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnQuery_Click(object sender, EventArgs e)
        {
            this.AspNetPager1.CurrentPageIndex = 1;
        }
    }
}
